
package guoan.service;

import guoan.domain.Media;
import guoan.repository.MediaRepository;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MediaService {
    protected final Logger log = LoggerFactory.getLogger(getClass());

    @Autowired
    private MediaRepository mediaRepository;

    public void add(Media media){
        // TODO Auto-generated method stub
        mediaRepository.save(media);
    }

}
